/*
 *  JPEGQueueServerMediaSubsession.hh - It consumes JPEG frames from the frame queue on demand
 *  Copyright (C) 2014  Fundació i2CAT, Internet i Innovació digital a Catalunya
 *
 *  This file is part of liveMediaStreamer.
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *  Authors:  David Cassany <david.cassany@i2cat.net>,
 *            
 */


// #include "JPEGQueueServerMediaSubsession.hh"
// #include "QueueSource.hh"
// 
// 
// JPEGQueueServerMediaSubsession*
// JPEGQueueServerMediaSubsession::createNew(UsageEnvironment& env,
//                           Reader *reader,
//                           Boolean reuseFirstSource) {
//   return new JPEGQueueServerMediaSubsession(env, reader, reuseFirstSource);
// }
// 
// JPEGQueueServerMediaSubsession::JPEGQueueServerMediaSubsession(UsageEnvironment& env,
//                                     Reader *reader, Boolean reuseFirstSource)
//   : QueueServerMediaSubsession(env, reader, reuseFirstSource) {
// }
// 
// FramedSource* JPEGQueueServerMediaSubsession::createNewStreamSource(unsigned /*clientSessionId*/, unsigned& estBitrate) {
//     //TODO: WTF
//     estBitrate = 1000; // kbps, estimate
// 
//     QueueSource *qSource = QueueSource::createNew(envir(), fReader);
//     
//     
//     return QueueSource::createNew(envir(), fReader);
// }
// 
// RTPSink* JPEGQueueServerMediaSubsession
// ::createNewRTPSink(Groupsock* rtpGroupsock,
//            unsigned char rtpPayloadTypeIfDynamic,
//            FramedSource* /*inputSource*/) {
//     return VP8VideoRTPSink::createNew(envir(), rtpGroupsock, rtpPayloadTypeIfDynamic);
// }

